import CryptoJS from "crypto-js";

export default function passwordEncrypt(word) {
  return CryptoJS.AES.encrypt(
    word,
    CryptoJS.enc.Latin1.parse("summitsummitsumm"),
    {
      iv: CryptoJS.enc.Latin1.parse("summitsummitsumm"),
      mode: CryptoJS.mode.CBC,
      padding: CryptoJS.pad.ZeroPadding
    }
  ).toString();
}
